import ajax from '@/utils/ajax'
const BASE = 'http://120.55.193.14:5000'

/*
 获取所有角色列表
*/
export const reqRoles = ()=>ajax(BASE+'/manage/role/list')

/*
 添加角色
*/
export const reqAddRole = (roleName) =>ajax(BASE+'/manage/role/add',{roleName},'POST')

/*
 更新角色
*/
export const reqUpdateRole = (role) =>ajax(BASE+'/manage/role/update',role,'POST')



